/* Custom 5-column grid for Desktop */
@media (min-width: 992px) {
    .col-lg-2-4 {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

.animated-flow .chevron-row {
    display: flex;
    flex-wrap: wrap;
}

.animated-flow .step-card {
    background: #ffffff;
    padding: 40px 20px;
    text-align: center;
    position: relative;
    z-index: 1;
    border: 1px solid #eef2f5;
    transition: all 0.4s ease-in-out;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* THE COLORED ARROW (SOLID BG) */
@media (min-width: 992px) {
    .animated-flow .step-card::after {
        content: '';
        position: absolute;
        right: -20px; /* Positions arrow at the end of card */
        top: 0;
        width: 20px;
        height: 100%;
        background: inherit; /* Matches the card background */
        clip-path: polygon(0% 0%, 100% 50%, 0% 100%); /* Creates the arrow point */
        z-index: 10;
        transition: all 0.4s ease-in-out;
    }

    /* Create an inset on the left side to receive the previous arrow */
    .animated-flow .step-card:not(:first-child) {
        clip-path: polygon(20px 0%, 100% 0%, 100% 100%, 20px 100%, 0% 50%);
        margin-left: -20px; /* Pulls cards together to interlock */
    }

    /* Hide arrow on the last step of each row */
    .animated-flow .last-chevron::after {
        display: none;
    }
}

/* HOVER ANIMATION & COLORS */
.animated-flow .step-card:hover {
    background: #046e50 !important; /* Your Emerald Green */
    border-color: #046e50;
    z-index: 5;
    transform: scale(1.02);
}

.animated-flow .step-card:hover i, 
.animated-flow .step-card:hover h4, 
.animated-flow .step-card:hover .step-badge {
    color: #ffffff !important;
}

/* Icon & Badge Styling */
.animated-flow i {
    color: #046e50;
    font-size: 35px;
    margin-bottom: 15px;
    transition: 0.3s;
}

.animated-flow h4 {
    font-size: 14px;
    font-weight: 700;
    color: #1a334b; /* Navy Blue */
    margin: 0;
}

.animated-flow .step-badge {
    position: absolute;
    top: 10px;
    left: 30px; /* Adjusted for the inset */
    font-size: 20px;
    font-weight: 800;
    color: rgba(4, 110, 80, 0.1);
}

/* Initial Pulse Animation for Icons */
.icon-pulse {
    animation: softFloat 3s ease-in-out infinite;
}

@keyframes softFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Stat Cards Styling */
.stat-card {
    padding: 40px;
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 220px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
}

/* Green Theme Gradient */
.green-card {
    background: linear-gradient(135deg, #046e50 0%, #355c51 100%);
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 5px;
    color: #ffffff;
}

.stat-title {
    font-size: 1.2rem;
    font-weight: 500;
    opacity: 0.9;
    margin: 0;
}

.card-icon i {
    font-size: 5rem;
    opacity: 0.2;
    position: absolute;
    right: 20px;
    bottom: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .stat-number {
        font-size: 2rem;
    }
}

.whatsapp-widget {
    position: fixed;
    bottom: 210px; /* Distance from the bottom */
    right: 10px;  /* Distance from the right */
    z-index: 9999; /* Ensure it's on top of other content */
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease; /* Hover lift effect */
}

/* On hover, lift the widget slightly */
.whatsapp-widget:hover, .phone-widget:hover, .email-widget:hover {
    transform: translateY(-5px);
}

/* Style for the main content (icon, etc.) */
.whatsapp-content {
    position: relative;
    width: 60px; /* Diameter of the circle */
    height: 60px;
    background-color: #25d366; /* WhatsApp brand green */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    
    /* THE PURPLE GLOW EFFECT */
    box-shadow: 
        0 4px 10px rgba(0, 0, 0, 0.3), /* Basic shadow */
        0 0 10px rgba(138, 43, 226, 0.7), /* Small purple glow */
        0 0 20px rgba(138, 43, 226, 0.5); /* Larger purple glow */
    
    /* Add an animation to make it pulse */
    animation: purplePulse 2s infinite;
}

.phone-widget {
    position: fixed;
    bottom: 140px; /* Distance from the bottom */
    right: 10px;  /* Distance from the right */
    z-index: 9999; /* Ensure it's on top of other content */
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease; /* Hover lift effect */
}

.phone-content {
    position: relative;
    width: 60px;
    height: 60px;
    background-color: #046e50;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;

    box-shadow: 
        0 4px 10px rgba(0, 0, 0, 0.3),
        0 0 10px rgba(4, 110, 80, 0.6),
        0 0 20px rgba(4, 110, 80, 0.4);

    animation: tealPulse 2s infinite;
}

@keyframes tealPulse {
    0% {
        box-shadow: 
            0 4px 10px rgba(0, 0, 0, 0.3),
            0 0 10px rgba(4, 110, 80, 0.6),
            0 0 20px rgba(4, 110, 80, 0.4);
    }
    50% {
        box-shadow: 
            0 4px 15px rgba(0, 0, 0, 0.3),
            0 0 20px rgba(4, 110, 80, 0.8),
            0 0 35px rgba(4, 110, 80, 0.5);
    }
    100% {
        box-shadow: 
            0 4px 10px rgba(0, 0, 0, 0.3),
            0 0 10px rgba(4, 110, 80, 0.6),
            0 0 20px rgba(4, 110, 80, 0.4);
    }
}

.email-widget {
    position: fixed;
    bottom: 70px; /* Distance from the bottom */
    right: 10px;  /* Distance from the right */
    z-index: 9999; /* Ensure it's on top of other content */
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease; /* Hover lift effect */
}

.email-content {
    position: relative;
    width: 60px; /* Diameter of the circle */
    height: 60px;
    background-color: #EA4335; /* Gmail red */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;

    /* Shadow */
    box-shadow: 
        0 4px 10px rgba(0, 0, 0, 0.3),
        0 0 10px rgba(234, 67, 53, 0.6),  /* Gmail glow */
        0 0 20px rgba(234, 67, 53, 0.4);

    animation: gmailPulse 2s infinite;
}

@keyframes gmailPulse {
    0% {
        box-shadow: 
            0 4px 10px rgba(0, 0, 0, 0.3),
            0 0 10px rgba(234, 67, 53, 0.6),
            0 0 20px rgba(234, 67, 53, 0.4);
    }
    50% {
        box-shadow: 
            0 4px 15px rgba(0, 0, 0, 0.3),
            0 0 20px rgba(234, 67, 53, 0.8),
            0 0 35px rgba(234, 67, 53, 0.5);
    }
    100% {
        box-shadow: 
            0 4px 10px rgba(0, 0, 0, 0.3),
            0 0 10px rgba(234, 67, 53, 0.6),
            0 0 20px rgba(234, 67, 53, 0.4);
    }
}

/* Define the pulsing glow animation */
@keyframes purplePulse {
    0% {
        box-shadow: 
        0 4px 10px rgba(0, 0, 0, 0.3),
        0 0 10px rgba(138, 43, 226, 0.7),
        0 0 20px rgba(138, 43, 226, 0.5);
    }
    50% {
        box-shadow: 
        0 4px 10px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(138, 43, 226, 0.9), /* Intense glow */
        0 0 40px rgba(138, 43, 226, 0.7);
    }
    100% {
        box-shadow: 
        0 4px 10px rgba(0, 0, 0, 0.3),
        0 0 10px rgba(138, 43, 226, 0.7),
        0 0 20px rgba(138, 43, 226, 0.5);
    }
}

/* Style the WhatsApp Icon */
.whatsapp-content i, .phone-content i, .email-content i {
    color: #fff;
    font-size: 34px;
    
}

/* --- Responsive Adjustments for Mobile --- */
@media screen and (max-width: 767px) {
    .whatsapp-widget {
        bottom: 15px; /* Adjust mobile position */
        right: 15px;
    }
    
    .whatsapp-content {
        width: 50px; /* Reduce mobile size */
        height: 50px;
        bottom: 170px;
    }
    
    .whatsapp-content i {
        font-size: 28px; /* Reduce icon size */
    }
    
    .email-widget {
        bottom: 15px; /* Adjust mobile position */
        right: 15px;
    }
    
    .email-content {
        width: 50px; /* Reduce mobile size */
        height: 50px;
        bottom: 50px;
    }
    
    .email-content i {
        font-size: 28px; /* Reduce icon size */
    }
    
    .phone-widget {
        bottom: 15px; /* Adjust mobile position */
        right: 15px;
    }
    
    .phone-content {
        width: 50px; /* Reduce mobile size */
        height: 50px;
        bottom: 110px;
    }
    
    .phone-content i {
        font-size: 28px; /* Reduce icon size */
    }
}

.icon-box {
    transition: all 0.3s ease;
    padding: 20px;
    border-radius: 10px;
}

.icon-box:hover {
    background: var(--accent-color) !important; /* Bootstrap green */
    color: #fff;
}

.icon-box:hover h4,
.icon-box:hover p,
.icon-box:hover i {
    color: #fff !important;
}